//
//  SoundManager.cpp
//  match2
//
//  Created by Tri Vo on 7/13/13.
//
//

#include "SoundManager.h"

using namespace CocosDenshion;

SoundManager *SoundManager::mInstance = NULL;

SoundManager* SoundManager::getInstance() {
    if (!mInstance) {
        mInstance = new SoundManager();
    }
    return mInstance;
}

SoundManager::~SoundManager() {
    
}


void SoundManager::playSound(const char* fileName, bool isLoop) {
    SimpleAudioEngine::sharedEngine()->playEffect(fileName, isLoop);
}

void SoundManager::muteSound(const char *fileName) {
    
}

void SoundManager::stopSound(const char *fileName) {
    
}

void SoundManager::stopBackgroundMusic() {
    SimpleAudioEngine::sharedEngine()->stopBackgroundMusic();
}

void SoundManager::playMusic(const char *fileName, bool isLoop) {
    SimpleAudioEngine::sharedEngine()->playBackgroundMusic(fileName, isLoop);
}

